<ion-view id="edit-address" view-title="编辑地址"  hide-nav-bar="true">
  <ion-header-bar align-title="center" class="bar-calm">
    <div class="buttons">
      <button class="button head-button button-clear center-btn" ng-click="goBack()">
        <img src="img/order-commit/backIcon.png">
      </button>
    </div>
    <h1 class="title">编辑地址</h1>
    <div class="buttons">
    <button class="button head-button button-clear center-btn" ng-click="save()">
    保存
    </button>
    </div>
  </ion-header-bar>
  <ion-content>
    <div class="form">
      <div class="line">
        <div class="left">联&nbsp;&nbsp;系&nbsp;人:</div>
        <div class="right">
          <input type="text" placeholder="请输入姓名" ng-model="addrData.reciveuser" ng-change="changeInfo()">
        </div>
        <span ng-if="namerequire" style="color:red;font-size:12px;position:absolute;right:5px;top:14px;">必填</span>
        <span ng-if="nameError" style="color:red;font-size:12px;position:absolute;right:5px;top:14px;">姓名有误</span>
      </div>
      <div class="line">
        <div class="left">联系电话:</div>
        <div class="right">
          <input type="text" placeholder="请输入手机号" ng-model="addrData.phonenumber" ng-change="changeInfo()">
        </div>
        <span ng-if="phonerequire" style="color:red;font-size:12px;position:absolute;right:5px;top:61px;">必填</span>
        <span ng-if="telError" style="color:red;font-size:12px;position:absolute;right:5px;top:61px;">号码有误</span>
      </div>
      <div class="line">
        <div class="left">收货地址:</div>
        <div class="right">
          <input type="text" placeholder="请输入地址" ng-model="addrData.address">
        </div>
        <span ng-if="addressrequire" style="color:red;font-size:12px;position:absolute;right:5px;top:110px;">必填</span>
      </div>
      <div class="line">
        <div class="left">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注:</div>
        <div class="right">
          <input type="text" placeholder="请输入备注"  ng-model="addrData.remark" ng-change="changeInfo()">
        </div>
      </div>
    </div>

    <div class="delete-dark"ng-if="showDel==false">删除</div>
    <div class="delete-red" ng-if="showDel==true" on-tap="delete()">删除</div>

  </ion-content>


</ion-view>